package com.itheima.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor

//员工实体类
//实体类中属性与表结构中字段一一对应，驼峰命名也要对应下划线形式

public class Emp {
    private Integer id;
    private String username;
    private String password;
    private String name;
    private Short gender;//这为啥用short？？？
    private String image;//图像url
    private Short job;//职位
    private LocalDate entrydate;//入职日期
    private Integer deptId;//部门id
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}
